---
sidebar_position: 3
---

# Blockchain

Access the blockchain using Chronik

## `blockchainInfo()`

Fetch current info of the blockchain, such as tip hash and height.

See [blockchainInfo](../api/classes/ChronikClient#blockchaininfo) API docs.

```jsx live
function DemoBlockchainInfo() {
    return (
        <Json
            fn={async () => {
                const chronik = new ChronikClient([
                    'https://chronik.e.cash',
                ]);
                return await chronik.blockchainInfo();
            }}
        />
    );
}
```

## `chronikInfo()`

Fetch info about the current running chronik server.

See [chronikInfo](api/classes/ChronikClient#chronikinfo) API docs.

```jsx live
function DemoChronikInfo() {
    return (
        <Json
            fn={async () => {
                const chronik = new ChronikClient([
                    'https://chronik.e.cash',
                ]);
                return await chronik.chronikInfo();
            }}
        />
    );
}
```
